﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using DAO;
using DTO;
namespace Banking.Member
{
    public partial class ThongTinChiTietTKThe : Form
    {
        public ThongTinChiTietTKThe()
        {
            InitializeComponent();
            List<LoaiThe> lstLoaiThe = LoaiTheDA.GetALL();
            cbbLoaiThe.DataSource= lstLoaiThe;
            cbbLoaiThe.DisplayMember="TenLoai";

            //cbbTinhTrang.DataSource = TaiKhoanTheDA.GetByTinhTrang();
            //cbbTinhTrang.DisplayMember = "LockFlg";

            cbbLoaiTien.DataSource = LoaiTienDA.GetALL();
            cbbLoaiTien.DisplayMember = "TenTien";
            cbbLoaiTien.ValueMember = "MaLoaiTien";
            

        }
        public void Init(int ma)
        {
            TaiKhoanThe taiKhoan = new TaiKhoanThe();
            taiKhoan = TaiKhoanTheDA.GetByID(ma);
            txtLaiSuat.Text = taiKhoan.LaiSuat.ToString();
            double a = Math.Round(taiKhoan.SoDu, 2);
            txtSoDu.Text = a.ToString();
        }

        private void groupPanel1_Click(object sender, EventArgs e)
        {

        }

        private void btnCapNhat_Click(object sender, EventArgs e)
        {

        }
    }
}
